package com.zhibang.report.service.impl;




import com.sannuo.common.domain.MonData;
import com.zhibang.report.dao.MonDataMappeer;
import com.zhibang.report.service.MonDataService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;


@Service
public class MonDataServiceImpl implements MonDataService {
    @Autowired
    private MonDataMappeer monDataMappeer;


    @Override
    public List<MonData> selectData(String csTime) {
        System.out.println("谷瀚凑傻逼==="+csTime);
        String gh = csTime.substring(0,csTime.lastIndexOf("-"));
        System.out.println(gh);
        csTime=gh+"%";
        System.out.println("谷瀚好帅啊"+csTime);
        List<MonData> monData = monDataMappeer.selectData(csTime);
        return monData;
    }
}
